package Brikker;

class Brett {
  public static void main(String[] args) {
/*  public int nyPlassering;
  public int gammelPlassering;*/
  Brikker[] brett = {new Taarn("hvit"), new Hest("hvit"), new Loeper("hvit"), new Konge("hvit"), 
               new Dronning("hvit"), new Loeper("hvit"), new Hest("hvit"), new Taarn("hvit"),
               new Bonde("hvit"), new Bonde("hvit"), new Bonde("hvit"), new Bonde("hvit"), 
               new Bonde("hvit"), new Bonde("hvit"), new Bonde("hvit"), new Bonde("hvit"), 
               null,null,null,null,null,null,null,null,
               null,null,null,null,null,null,null,null,
               null,null,null,null,null,null,null,null,
               null,null,null,null,null,null,null,null,
               new Bonde("svart"), new Bonde("svart"), new Bonde("svart"), new Bonde("svart"), 
               new Bonde("svart"), new Bonde("svart"), new Bonde("svart"), new Bonde("svart"),
               new Taarn("svart"), new Hest("svart"), new Loeper("hvit"), new Dronning("hvit"),
               new Konge("hvit"), new Loeper("hvit"), new Hest("svart"), new Taarn("svart")};  

  /*
  public Brett(int gammelPlassering, int nyPlassering){
    this.gammelPlassering = gammelPlassering;
    this.nyPlassering = nyPlassering;
  }*/
    System.out.println(brett[63].GyldigTrekk(63, 55));
    System.out.println(brett[63].GyldigTrekk(63, 62));
    System.out.println(brett[63].GyldigTrekk(63, 54));
    System.out.println(brett[0].GyldigTrekk(0, 16));
    System.out.println(brett[0].GyldigTrekk(0, 6));
    System.out.println(brett[0].GyldigTrekk(0, 19));
    
    String res = "";
    for(int i =0;i<brett.length;i++){
       if(i%8==0){
        res+= "\n";
      }
      res += brett[i] + " ";
     
      
    }
    System.out.println(res);
  }

}
  

